//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package mutsumimod.actions;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.AbstractPower;
import mutsumimod.powers.SkyBallDebuffPower;

import java.util.ListIterator;

public class SkyBallAction extends AbstractGameAction {

    public SkyBallAction() {
    }

    public void update() {
        ListIterator<AbstractPower> iterator = AbstractDungeon.player.powers.listIterator();
        while (iterator.hasNext()) {
            AbstractPower p = iterator.next();
            if (p.type == AbstractPower.PowerType.DEBUFF) {
                iterator.set(new SkyBallDebuffPower(p));
            }
        }
        isDone = true;
    }
}
